package com.geeksx.trainer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geeksx.trainer.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Copyright (C), 2025, 北京同创永益科技发展有限公司
 *
 * @Classname UserMapper
 * @Description TODO
 * @Date 2025/8/26 14:51
 * @Created by zhengkaixuan
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户名查询用户是否存在
     * @param username
     * @return
     */
    User existsByUsername(@Param("username") String username);
}
